<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="productCodeList" value="${param.productCodeList}"></c:set>
<div class="easyui-layout" style="width:100%;height:100%;" fit="true">
    <div data-options="region:'center',title:'',split:true" style="height:100%;">
		<form id="buyerInfoForm" method="post" >
		    <input type="hidden" id="productCodeList" name="productCodeList" value="${param.productCodeList}" data-options="required:true">
			<input type="hidden" id="isReturn" name="isReturn" value="${param.isReturn}" data-options="required:true">
			
			<table class="detailTable"> 
    	 	<tr>
                <th>拒绝退货原因:</th>
                <td colspan="3" ><textarea rows="8"  class="easyui-validatebox " id="refusedReturnReason" name="refusedReturnReason" style="width:400px;" data-options="required:true"></textarea></td>
            </tr>
            <tr id="cz" >
                <th>操作:</th>
                <td align="center">
                	<input type="button"  onclick="submitForm()" class="button" value="提交" >
                </td>
            </tr>
          </table>
       </form>
   </div>
</div>
<script>

function submitForm(){
	$('#buyerInfoForm').form('submit', {
		url:'<c:url value="/trade/item/updateMultipleConfirmItemForIsReturns.do"/>',
	    onSubmit: function(param){
	    	if(!$("#buyerInfoForm").form('validate')){
	    		return false;
	    	}
	    	//alert(url);
	    	//时间对比
	    }, 
	    success:function(data){
		    var ret = eval("("+data+")");
		    if(ret.code=="200"){
		    	alertShow("回复成功！");
		    	ordersTable.refresh();
				$("#win_order_return_detail").dialog('close');
				 
			}else{
				alertError(ret.result);
			}
	    }
	});
}
</script>